﻿namespace KseCms.Application
{
    public class OrderDto
    {
        [Required, MaxLength(50)]
        public string Id { get; set; }

        public string ShoppingCartId { get; set; }

        [Required]
        public string UserId { get; set; }

        public ProductDto Product { get; set; }

        public int Quantity { get; set; } = 0;

        public decimal Amount { get; set; } = 0;

        public OrderStatus Status { get; set; } = OrderStatus.WaitToPay;

        public DateTime CreatedDate { get; set; }

        public DateTime UpdatedDate { get; set; }
    }

    public enum OrderStatus
    {
        WaitToPay,

        WaitToReceive,

        Completed
    }
}
